package io.chenglicun.modules.knowledge.dto;

import io.chenglicun.common.trans.annotation.Trans;
import io.chenglicun.modules.sys.entity.SysUserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* 用户提问记录
*
* @author shicong 705740711@qq.com
* @since 1.0 2024-05-10
*/
@Data
@ApiModel(value = "用户提问记录")
public class KnowledgeQaDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "问题")
    private String question;
    @ApiModelProperty(value = "答案")
    private String answer;
    @ApiModelProperty(value = "类型0 图片，1 视频, 2 文字")
    private String contentType;
    @ApiModelProperty(value = "类型0 知识库，1 配置问答")
    private String type;
    @ApiModelProperty(value = "创建者")
    private Long creator;
    @Trans(trans = "creator", entity = SysUserEntity.class)
    private String realName;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;
    @ApiModelProperty(value = "更新者")
    private Long updater;
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

}